package com.lbc.bean.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author xyl
 * @date 2021-03-17 18:34
 */
@Data
public class NewsDTO {
    @ApiModelProperty("编辑时携带主键id")
    private Integer newsId;

    @NotBlank(message = "标题不能为空")
    @ApiModelProperty(value = "标题",required = true)
    private String title;
    @NotBlank(message = "内容不能为空")
    @ApiModelProperty(value = "内容",required = true)
    private String content;
    @NotBlank(message = "图片路径不能为空")
    @ApiModelProperty(value = "显示的主图 , 图片路径",required = true)
    private String mainPic;
}
